unit Unit5;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls, jpeg;

type
  TForm5 = class(TForm)
    Edit1: TEdit;
    Edit2: TEdit;
    Button1: TButton;
    Memo1: TMemo;
    Label1: TLabel;
    Label2: TLabel;
    Memo2: TMemo;
    Label3: TLabel;
    Label4: TLabel;
    Memo3: TMemo;
    Label5: TLabel;
    Image1: TImage;
    Button2: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);

  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form5: TForm5;

implementation

{$R *.dfm}



procedure TForm5.Button1Click(Sender: TObject);
   var a,b:extended;
begin
a:=strtofloat(edit1.text);
b:=strtofloat(edit2.text);
memo1.Text:=floattostr(strtofloat(Edit1.text)*strtofloat(Edit2.text)*3.14)  ;
memo2.Text:=floattostr(((a*b*3.14+(a*a+2*a*b-b*b))/a+b))   ;
memo3.Text:=floattostr(3.14*(3*(a+b)-sqrt((3*a+b)*(a+3*b))) ) ;
end;

procedure TForm5.Button2Click(Sender: TObject);
begin
form5.close;
end;

end.
